package com.woniu51.order.api;

import com.woniu51.order.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order-service")
public interface OrderFeignClient {

    @RequestMapping("feign/order/queryByOrderId")
    public Order queryByOrderId(@RequestParam("oid") Long oid);
    @RequestMapping("feign/order/confirmPay")
    Integer confirmPay(@RequestParam("oid") Long oid);

}
